<html>
<head><meta charset="utf-8"><title>Function Definition for query · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html">Function Definition for query</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="212694793"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Function%20Definition%20for%20query/near/212694793" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> BN <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html#212694793">(Oct 08 2020 at 14:09)</a>:</h4>
<p>I'd like to look up the function definition for the following query (<a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.explicit_item_bounds">explicit_item_bounds</a>). The rust docs only link to the definition of the query macro, how can I (preferably in general) look up function definitions for a particular query?</p>



<a name="212700264"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Function%20Definition%20for%20query/near/212700264" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html#212700264">(Oct 08 2020 at 14:45)</a>:</h4>
<p>The best way I know is <code>rg 'fn explicit_item_bounds'</code> :/</p>



<a name="212700629"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Function%20Definition%20for%20query/near/212700629" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html#212700629">(Oct 08 2020 at 14:47)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/39726">https://github.com/rust-lang/rust/issues/39726</a></p>



<a name="212701662"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Function%20Definition%20for%20query/near/212701662" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html#212701662">(Oct 08 2020 at 14:54)</a>:</h4>
<p>(deleted)</p>



<a name="212703139"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Function%20Definition%20for%20query/near/212703139" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html#212703139">(Oct 08 2020 at 15:03)</a>:</h4>
<p>Actually even that wouldn't help because query declarations are separated from definitions</p>



<a name="212703187"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Function%20Definition%20for%20query/near/212703187" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Function.20Definition.20for.20query.html#212703187">(Oct 08 2020 at 15:03)</a>:</h4>
<p>The declarations are in rustc_middle::ty but the definition could be anywhere</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>